export function Recursion(target, tree, result = null) {
  if (result === null) {
    // 传递进来的tree类型
    if (tree.constructor === Object && tree.tabs) {
      return Recursion(target, tree.tabs, result);
    }
    tree.forEach((item) => {
      if (item.tabs) {
        // 需要递归
        return Recursion(target, item.tabs, result);
      } else {
        if (item.rs_code === target) {
          result = { ...item };
          return result;
        }
      }
    });
    return result;
  }
}
